home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 February / february_2000.iso / site building / GoLive 4.0 Tryout / data1.cab / Apps / Modules / JScripts / Actions / Getters / Get Form Value.action < prev    next >
Encoding:
Text File  |  1999-08-05  |  3.8 KB  |  94 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <meta name="generator" content="Adobe GoLive 4">
  6.         <title>Get FormElementValue Action</title>
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Get FormElementValue Action</font><font>
  12.             <hr>
  13.             </font></center>
  14.         <p>
  15.         <csactionclass name="Get FormElementValue" function="CSGetFormElementValue" nsversion="4" ieversion="4"> </p>
  16.         <p>
  17.         <csactionparam name="form" type="GLActionStringParam" var="YES"> </p>
  18.         <p>
  19.         <csactionparam name="element" type="GLActionStringParam" var="YES"></p>
  20.         <p></csactionclass>
  21.          </p>
  22.         <p>
  23.         <hr>
  24.         </p>
  25.         <p>IE Functions Script
  26.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  27.         </p>
  28.         <p>StylePos Functions Script
  29.         <script language="JavaScript1.2" src="../../GlobalScripts/StylePos.scpt" cyberversion="N1.2"></script>
  30.         </p>
  31.         <p>Main Script
  32.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  33. function CSGetFormElementValue(action) { 
  34.     var form = action[1];
  35.     var elem = action[2];
  36.     return document.forms[form].elements[elem].value;
  37. }
  38. // -->
  39.         </script>
  40.         </p>
  41.         <p>
  42.         <hr>
  43.         </p>
  44.         <p>
  45.         <table cool width="253" height="99" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  46.             <tr height="1" cntrlrow>
  47.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  48.                 <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
  49.                 <td width="56" height="1"><spacer type="block" width="56" height="1"></td>
  50.                 <td width="184" height="1"><spacer type="block" width="184" height="1"></td>
  51.             </tr>
  52.             <tr height="10">
  53.                 <td width="1" height="10"><spacer type="block" width="1" height="10"></td>
  54.                 <td width="10" height="10"><spacer type="block" width="10" height="10"></td>
  55.                 <td width="56" height="10"><spacer type="block" width="56" height="10"></td>
  56.                 <td width="184" height="10"><spacer type="block" width="184" height="10"></td>
  57.             </tr>
  58.             <tr height="3">
  59.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  60.                 <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
  61.                 <td width="56" height="3"><spacer type="block" width="56" height="3"></td>
  62.                 <td width="184" height="32" colspan="1" rowspan="2" valign="top" align="left" xpos="66">
  63.                     <csactioncntrl name="form" x="66" y="10" width="164" height="18" alignx="scale" aligny="top">
  64.                 </td>
  65.             </tr>
  66.             <tr height="29">
  67.                 <td width="1" height="29"><spacer type="block" width="1" height="29"></td>
  68.                 <td width="10" height="29"><spacer type="block" width="10" height="29"></td>
  69.                 <td width="56" height="29" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
  70.                     <csactioncntrl type="StaticText" value="Form" x="10" y="13" width="45" height="16" alignx="left" aligny="top">
  71.                 </td>
  72.             </tr>
  73.             <tr height="3">
  74.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  75.                 <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
  76.                 <td width="56" height="3"><spacer type="block" width="56" height="3"></td>
  77.                 <td width="184" height="54" colspan="1" rowspan="2" valign="top" align="left" xpos="66">
  78.                     <csactioncntrl name="element" x="66" y="42" width="164" height="18" alignx="scale" aligny="top">
  79.                 </td>
  80.             </tr>
  81.             <tr height="51">
  82.                 <td width="1" height="51"><spacer type="block" width="1" height="51"></td>
  83.                 <td width="10" height="51"><spacer type="block" width="10" height="51"></td>
  84.                 <td width="56" height="51" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
  85.                     <csactioncntrl type="StaticText" value="Element" x="10" y="45" width="46" height="16" alignx="left" aligny="top">
  86.                 </td>
  87.             </tr>
  88.         </table>
  89.         </p>
  90.         <p> 
  91.     </body>
  92.  
  93. </html>
  94.